package service;

import dao.OptionsMapper;
import org.springframework.stereotype.Service;
import pojo.Options;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OptionsServiceImpl implements OptionsService {

    @Resource
    private OptionsMapper mapper;


    @Override
    public List<Options> getById(Integer id) {
        return mapper.getById(id);
    }

    @Override
    public Boolean UpdateVote(int id) {
        return mapper.UpdateVote(id)>0;
    }

    @Override
    public Integer getCount(Integer id) {
        return null;
    }
}
